<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<script type="text/javascript">
	$(document).ready(function() {
				$("#superFicialRolesMappingForm").attr("action",'<c:url value="/saveSuperFicialRoleMappingDetails.htm"></c:url>');
			});
		
</script>

<div>
	<form:form commandName="superFicialRolesMappingForm" id="superFicialRolesMappingForm">
		<table class="adminFilterTable">
			<tr class="tableChildHeaderColor">
				<td colspan="5" align="center">ASSIGN BUSINESS UNIT(S)</td>
			</tr>
			<tr class="formSpacingRow"><td></td> </tr>
			<tr class="formSpacingRow"><td></td> </tr>
			<tr>
				<form:hidden path="userId" value="${userName}"/>
				<td class="spacingColumnWidthLess"></td>
				<td class="formLabel"> User Id: </td>
				<td class="spacingColumnWidthLess"></td>
				<td class="formLabel" style="text-align: left;"><form:label path="userId">${userName}</form:label></td>
				<td class="spacingColumnWidthLess"></td>
			</tr>
			<tr class="formSpacingRow"><td></td> </tr>
			<tr>
				<form:hidden path="roleId" value="${roleId}"/>
				<td class="spacingColumnWidthLess"></td>
				<td class="formLabel"> Role Id: </td>
				<td class="spacingColumnWidthLess"></td>
				<td class="formLabel" style="text-align: left;"><form:label path="roleId">${roleName}</form:label></td>
				<td class="spacingColumnWidthLess"></td>
			</tr>
			<tr class="formSpacingRow"><td></td> </tr>
			<tr>
				<form:hidden path="cdId" value="${companyId}"/>
				<td class="spacingColumnWidthLess"></td>
				<td class="formLabel"> Company: </td>
				<td class="spacingColumnWidthLess"></td>
				<td class="formLabel" style="text-align: left;"><form:label path="cdId">${companyName}</form:label></td>
				<td class="spacingColumnWidthLess"></td>
			</tr>
			<tr class="formSpacingRow"><td></td> </tr>
			<tr>
				<td class="spacingColumnWidthLess"></td>
				<td class="formLabel"> Business Units: </td>
				<td class="spacingColumnWidthLess"></td>
				<td class="formLabel" style="text-align: left;">
					<form:checkboxes items="${locationMap}" path="ldId" id="locId"/>
				</td>
				<td class="spacingColumnWidthLess"></td>
			</tr>
			<tr class="formSpacingRow"><td></td> </tr>
			<tr align="left">
				<td class="spacingColumnWidthLess"></td>
				<td></td>
				<td class="spacingColumnWidthLess"></td>
				<td> <input class="formButton ui-corner-all" type="button" value="SUBMIT" onclick="javascript:addEntity('superFicialRolesMappingForm')"> </td>
				<td class="spacingColumnWidthLess"></td>
			</tr>
		</table>
	</form:form>
</div>